##############################################################
# Protocol buffer stuff
##############################################################

# Define the protocol buffer compiler
protoc.output			= ${QMAKE_FILE_BASE}.pb.cc
protoc.input			= PROTOC_INPUT_FILES
protoc.dependency_type	= TYPE_C
protoc.CONFIG			+= target_predeps
protoc.name				= protoc
protoc.variable_out		= SOURCES
protoc.commands			= /usr/local/bin/protoc -I=${QMAKE_FILE_IN_PATH} --cpp_out=. ${QMAKE_FILE_NAME}
QMAKE_EXTRA_COMPILERS	+= protoc

# Specify the protocol buffer files
PROTOC_INPUT_FILES		+=	$$PWD/pod.proto

# Add da protobuf lib
win32:debug {
	LIBS		+=	libprotobufd.lib
}

win32:release {
	LIBS		+=	libprotobuf.lib
}

macx {
	LIBS			+=	-lprotobuf
}
